#!/bin/bash
#pMusic
#GPL - Copyright Sigmund Berglund
##############################################
##############################################
##############################################
##############################################

export TEXTDOMAIN=pmusic
export OUTPUT_CHARSET=UTF-8

echo '
<svg version="1.1" width="200" height="20" id="svg1">
  <text x="11" y="16" style="fill:#222222;font-family:DejaVu;font-style:italic;font-weight:bold;font-size:16;text-anchor:start">
	Made with Gtkdialog
  </text>
  <text x="10" y="15" style="fill:#009D28;font-family:DejaVu;font-style:italic;font-weight:bold;font-size:16;text-anchor:start">
	Made with Gtkdialog
  </text>
</svg>' > $WORKDIR/about_button.svg

case $1 in
	-disclaimer)	PAGE_NR=3;;
	*)				PAGE_NR=0;;
esac

export pmusic_about='
<window title="pMusic - '$(gettext 'About')'" icon-name="pmusic" resizable="false">
 <notebook page="'$PAGE_NR'" labels="'$(gettext 'About')'|'$(gettext 'License')'|'$(gettext 'Credits')'|'$(gettext 'Disclaimer')'">
  <vbox>
   <eventbox name="svgsplash" height-request="200" space-expand="true" space-fill="true">
    <vbox spacing="0" space-expand="true" space-fill="true">
     <hbox space-expand="false" space-fill="false">
      <text xpad="20" ypad="51" use-markup="true" justify="1" space-expand="false" space-fill="false"><label>"<i><span color='"'#789978'"'><small>Copyright (C) 2008-2017</small></span></i>"</label></text>
      <text space-expand="true" space-fill="true"><label>""</label></text>
     </hbox>
     <text space-expand="true" space-fill="true"><label>""</label></text>
     <hbox space-expand="false" space-fill="false">
      <text space-expand="true" space-fill="true"><label>""</label></text>
      <text xpad="10" ypad="0" use-markup="true" justify="1" space-expand="false" space-fill="false"><label>"<big><i><span color='"'#ADD0AD'"'>Sigmund Berglund</span></i></big>"</label></text>
     </hbox>
     <hbox space-expand="false" space-fill="false">
      <text space-expand="true" space-fill="true"><label>""</label></text>
      <text xpad="10" ypad="8" use-markup="true" justify="1" space-expand="false" space-fill="false"><label>"<big><i><span color='"'#ADD0AD'"'>and the Puppylinux community</span></i></big>"</label></text>
     </hbox>
    </vbox>
   </eventbox>
   <vbox space-expand="false" space-fill="false">
   <button space-expand="true" space-fill="true">'"
    <label>\"http://puppylinux.org/wikka/pMusic\"</label>
    <action>export GTK2_RC_FILES=$HOME/.gtkrc-2.0; $BROWSER http://puppylinux.org/wikka/pMusic &</action>
   </button>
   </vbox>
  </vbox>
  <frame>
   <text use-markup=\"true\"><label>\"   pMusic is released under the <b>GNU General Public License</b> (GPL). You have the right to use and modify this software in any way you like, so long as any derivative works remain under a GPL license.
   
   This program is distributed in the hope that it will be useful, but <b><span color='"'red'"'>WITHOUT ANY WARRANTY</span></b>. See the GNU General Public License homepage for more details.\"</label></text>
   <hbox>
    <button>
     <label>\"http://www.gnu.org/licenses/\"</label>
     <action>export GTK2_RC_FILES=$HOME/.gtkrc-2.0; $BROWSER http:\/\/www.gnu.org\/licenses\/</action>
    </button>"'
   </hbox>
  </frame>
  <frame>
   <vbox space-expand="true" space-fill="true">
    <edit editable="false" left_margin="10" space-expand="true" space-fill="true">
     <input file>'$APPDIR'/txt_about</input>
    </edit>
   </vbox>
  </frame>
  <frame>'"
   <text use-markup=\"true\"><label>\"   pMusic offers tools to download data from the web. This includes music, podcasts, radio programs, lyrics, album art and album playlists.

   <b>Depending on your home country, <span color='"'red'"'>these features could have legal issues.</span></b>
  
   The pMusic authors have no responsibility for illegal usage of any kind.\"</label></text>
   <hbox>
    <button>
     <label>\" More info \"</label>
     <action>export GTK2_RC_FILES=$HOME/.gtkrc-2.0; $BROWSER http:\/\/puppylinux.org\/wikka\/pmusicDisclaimer</action>
    </button>
   </hbox>
  </frame>"'

 </notebook>
</window>'
